package org.ezplatform.office.meeting.info.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseNativeEntity;


@MetaData("会议签到地址表")
@Entity
@Table(name = "oa_meeting_signed_addr")
public class SignedAddress extends BaseNativeEntity {

	private static final long serialVersionUID = -1L;

	@MetaData("签到地址")
    @Column(name = "signed_address")
    private String signedAddress;
    
    @MetaData("申请记录id")
    @Column(name = "apply_record_id")
    private String applyRecordId;

	@Column(name = "fkid")
	private String fkid;
    
    @MetaData("经度")
    @Column(name = "longitude")
    private String longitude;
    
    @MetaData("纬度")
    @Column(name = "latitude")
    private String latitude;

	public String getSignedAddress() {
		return signedAddress;
	}

	public String getApplyRecordId() {
		return applyRecordId;
	}

	public String getLongitude() {
		return longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setSignedAddress(String signedAddress) {
		this.signedAddress = signedAddress;
	}

	public void setApplyRecordId(String applyRecordId) {
		this.applyRecordId = applyRecordId;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getFkid() {
		return fkid;
	}

	public void setFkid(String fkid) {
		this.fkid = fkid;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((latitude == null) ? 0 : latitude.hashCode());
		result = prime * result + ((longitude == null) ? 0 : longitude.hashCode());
		result = prime * result + ((signedAddress == null) ? 0 : signedAddress.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		SignedAddress other = (SignedAddress) obj;
		if (latitude == null) {
			if (other.latitude != null)
				return false;
		} else if (!latitude.equals(other.latitude))
			return false;
		if (longitude == null) {
			if (other.longitude != null)
				return false;
		} else if (!longitude.equals(other.longitude))
			return false;
		if (signedAddress == null) {
			if (other.signedAddress != null)
				return false;
		} else if (!signedAddress.equals(other.signedAddress))
			return false;
		return true;
	}
	
}